package contract;

import java.util.Calendar;
import person.Employee.Role;
import person.Person;

public class EmployeeContract extends Contract{
	
	public EmployeeContract(Calendar stipulationDate, Calendar validityDate, String clauses, Role role, Person person, double wages, boolean temporaryContract) {
		super(stipulationDate, validityDate, clauses);
		this.role = role;
		this.person = person;
		this.wages = wages;
		this.temporaryContract = temporaryContract;
	}
	
	public EmployeeContract(long id, Calendar stipulationDate, Calendar validityDate, String clauses, Role role, Person person, double wages, boolean temporaryContract) {
		super(id, stipulationDate, validityDate, clauses);
		this.role = role;
		this.person = person;
		this.wages = wages;
		this.temporaryContract = temporaryContract;
	}
	
	public double getWages() {
		return wages;
	}

	public void setWages(double wages) {
		this.wages = wages;
	}

	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}

	public boolean isTemporaryContract() {
		return temporaryContract;
	}
	public void setTemporaryContract(boolean temporaryContract) {
		this.temporaryContract = temporaryContract;
	}
	
	private double wages;
	private Role role;
	private Person person;
	private boolean temporaryContract;
}
